This folder includes the data and code to reproduce the results in "Monetary Policy and Redistribution in Open Economies" by Guo, Ottonello, and Perez.

There are two subfolders: 
1. Model: it includes the codes to produce the quantitative results in the paper.
2. Empirical: it includes the codes to produce the empirical moments used in this paper.

===========================================================
 Model
===========================================================
Software: Matlab 2020a
Requirement: add the CompEcon toolbox and the "MatLabToolbox" in the subfolder to MatLab to make the codes work.
Folder structure:
  01_HANK: codes to analyze the comparable closed-economy HANK.
  02_ORANK: codes to analyze the comparable open-economy model without idiosyncratic income risk.
  03_OHANK_xx_xxxxx: codes to analyze various versions of the open-economy HANK model.

To produce the baseline results: use the code in 03_OHANK_01_Baseline/Analysis/1_Baseline/
For various robustness checks: use the code in 03_OHANK_01_Baseline/Analysis/2_RobCheck_x_xxxx/

===========================================================
 Empirical
===========================================================
Software: Python and Stata
Original data sets: all original data sets are included in Empirical/Data/ except for CFM and GQ since they are protected data in the Bank of Canada.
Folder structure:
  Analysis_Aggregate: codes to compute the aggregate moments.
  Analysis_Distribution: codes to compute the distributional statistics about the financially integrated households.